<<<<<<< .mine
﻿
<%@ page language="java" pageEncoding="UTF-8"%>
=======
﻿<%@ page language="java" pageEncoding="UTF-8"%>
>>>>>>> .r34
<%@ page import="code.util.ParamUtils" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%
	String msg = ParamUtils.getAttribute(request, "msg", "");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>CodeSharer——注册页面</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    
     <link href="css/s-9.css" rel="stylesheet" type="text/css" />
    <link href="css/comment-7.css" rel="stylesheet" type="text/css" />
    <SCRIPT language="javascript" src="js/comm.js"></SCRIPT>
  </head>
  
  <body>
  
  <div id="head">
	<div class="hd">
		<div class="l tac wl2" style="width:230px;padding:3px;">
			<div style="padding-left:55px;"><a href="servlet/ShowIndex1"><img src="images/pcslogo.gif" width="106" height="36" /></a></div>
		</div>

		<div class="h3"><a href="reg.jsp" class="ce">注册</a> ┊ <a href="login.jsp" class="ce">登录</a> ┊ <a href="#" class="ce">帮助</a></div>
		<div class="c"></div>
	</div>
   </div>
  
    <SCRIPT language="javascript">
    	function check(){
    		if(document.all.userName.value == ""){
    			alert("请输入用户名");
    			document.all.userName.focus();
    			return false;
    		}
    		else if(document.all.nickName.value == ""){
    			alert("请输入昵称");
    			document.all.nickName.focus();
    			return false;
    		}
    		else if(document.all.userPass.value == ""){
    			alert("请输入密码");
    			document.all.userPass.focus();
    			return false;
    		}
    		else if(document.all.userPass.value != document.all.userPass2.value){
    			alert("两次密码输入不一致");
    			document.all.userPass.focus();
    			return false;
    		}
    		else if(document.all.email.value == ""){
    			alert("请输入email");
    			document.all.email.focus();
    			return false;
    		}
    		else if(document.all.spaceName.value == ""){
    			alert("请输入空间名称");
    			document.all.spaceName.focus();
    			return false;
    		}
    		else if(document.all.city.value == ""){
    			alert("请输入城市地址");
    			document.all.city.focus();
    			return false;
    		}
    		else if(document.all.icon.value == ""){
    			alert("请上传您的头像");
    			document.all.icon.focus();
    			return false;
    		}
    		else if(document.all.userRandomCode.value == ""){
    			alert("请输入验证码");
    			return false;
    		}
    		 else {
    		 document.frmLogin.action="servlet/DoReg"
	         document.frmLogin.Submit();
	         document.all.regButton.disabled = true;
    		 }
    	}
    	function previewImage(o){
    		document.getElementById("previewSection").style.display = "block";
    		document.getElementById("previewSection").innerHTML = "<IMG name=\"imageFile\" src=\"" + o.value + "\" width=\"140\" height=\"160\">"
    	}
    </SCRIPT>
  
  <div id="main">	
   <div class="m2 wr1">
    <div id="r2_2">

		<div id=normal_reg>
			<div id="r21" style="padding-bottom:15px;padding-top:15px;margin-left:90px;padding-left:10px;margin-right:90px;">注册：开通您的CodeSharer账户</div>
			<br />
			<div style="margin-left:100px;">CodeShare是帮助你管理你的代码，并与你的朋友、同事、同学一起分享代码的真实平台，通过这个平台<br />你可以在线高亮阅读你的代码；进行代码版本的管理，感受程序员成长的快乐；结识更多志同道合的朋友
        </div>
      </div>
	<br />
  
    	<FORM action="" method="post" name="frmLogin" onSubmit="userPass.value=md5_3(userPass.value),userPass2.value=md5_3(userPass2.value)" enctype="multipart/form-data">
		<div id="r26" style="padding-left:100px;">
		<div style="font-size:12px"><%=msg.equals("") ? "" : msg%></div>
		
			<div id="r231">
				<div class="zc1" >您的用户名：　<span>*</span></div>
				<div class="zc2">
					<span class="it_s"><input id="userName" name="userName" value="" type="text" class="it1" size="20"/></span>
				</div>
			</div>
			
			<div id="r232">
				<div class="zc1">设置密码：　<span>*</span></div>
				<div class="zc2">
					<span class="it_s"><input name="userPass" type="password" class="it1" size="20"/></span>
				</div>
			</div>
			
			<div id="r233">
				<div class="zc1">重复密码：　<span>*</span></div>

				<div class="zc2">
					<span class="it_s"><input name="userPass2" type="password" class="it1" size="20"/></span>
				</div>	
			</div>
			<div style="padding:10px;"></div>
			
			<div id="r234"></div>
			
			<div id="r235">
				<div class="zc1">用户昵称：　<span>*</span></div>
				<div class="zc2">
					<span class="it_s"><input name="nickName" type="text" class="it1" size="20"/></span>
				</div>
			</div>
			<div id="r23c">
				<div class="zc1">城市：　<span>*</span></div>
				<div class="zc2">
					<span class="it_s"><input name="city" type="text" class="it1" size="20"/></span>
				</div>
			</div>
			<div id="r236">
                <div class="zc1">Email：　<span>*</span></div>
				<div class="zc2">
					<span class="it_s"><input name="email" type="text" class="it1" size="20"/></span>
				</div>
			</div>
			<div id="r239">
				<div class="zc1">空间名：　<span>*</span></div>
				<div class="zc2">
					<span class="it_s"><input name="spaceName" type="text" class="it1" size="20"/></span>
				</div>
			</div>
			
			<div id="r23a">
				<div class="zc1">上传头像：　<span>*</span></div>
				<div class="zc2"><span class="it_s"><input type="file" name="icon" onChange="previewImage(this);" class="it1" />
				</span>
				</div>	
			</div>
			<div id="r23b"></div>
			
			<div id="r23e">
				<div class="zc1">验证码：　<span>*</span></div>
				<div class="yzm1">
					<span class="it_s"><input id="code" name="userRandomCode" type="text" class="it1" size="20"/></span><img border=0 src="servlet/RandomCodeCtrl">
				</div>
			</div>
			
			<div id="r23f" align="center">
				<div id="previewSection" style="display: none; index : 1" align="center"></div>
			</div>
		
			<div id="r23h">
				<div class="zc1">&nbsp;</div>	
				<div class="zc2" style="padding-top:15px;*padding-top:35px ! important;*padding-top:15px;">
				<span class="ty_s" style="float:none;"><input type="submit" id="btn_ty" value="完成，立即注册" class="ty1" onMouseOver="this.className='ty2';" onMouseOut="this.className='ty1';" onClick="check();"/></span></div>
			</div>
			
		</FORM>
		
	<DIV id="uploadFlag" style="position : absolute ; left: 440px; top: 150px; index:1 ; display: none">正在上传...</DIV>
	
	</div></div></div>
	
	<div id="b">
	<div class="b1"><a href="#" class="c6" target="_blank">关于我们</a><span>┊</span><a href="/s/contact.html" class="c6" target="_blank">联系方式</a><span>┊</span><a href="/t/feedback.html" class="c6" target="_blank">意见反馈</a><span>┊</span><a href="/s/help.html" class="c6" target="_blank">帮助中心</a>　 &nbsp;<a class=c6 href=http://www.miibeian.gov.cn target=_blank>NENU</a> <img src="images/gs.gif" width="15" align="absmiddle" />&nbsp;<img src="images/jc.gif" width="17" align="absmiddle" /></div>

    </div>
	
  </body>
</html>
